home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
wildcat
/
qwkhold1.zip
/
LOGON2.WCX
(
.txt
)
< prev
next >
Wrap
Wildcat! WCX
|
1996-05-17
|
9KB
|
506 lines
'! Decompiled with wccNosy version 4.20f (freeware)
'! Input File: in.wcx 9334 bytes 03/09/122 08:19:16am
'! Code Segment Size :6387 bytes
'! Data Segment Size :4986 bytes
'! String Segment Size:2947 bytes
'! Compiled with WCC version 4.12
Dim i4463 As Integer
Dim s4465 As String
Dim s4469 As String
Dim d4473 As Date
Dim i4475 As Integer
Dim s4477 As String
Dim s4481 As String
Dim s4485 As String
Dim w4489 As Word
Dim s4491 As String
Dim sr4495 As SearchRec
Dim l4544 As Long
Dim i4548 As Integer
Dim i4552 As Integer
Dim i4554 As Integer
Dim l4556 As Long
Dim i4882 As Integer
Dim s4884 As String
Dim i4888 As Integer
Dim i4890 As Integer
Dim s4894 As String
Dim s4898 As String
Dim s4902 As String
Dim s4906 As String
Dim s4910 As String
Dim s4914 As String
Dim s4918 As String
Dim s4922 As String
Dim s4926 As String
Dim s4930 As String
Dim s4936 As String
Dim s4940 As String
Dim s4948 As String
Dim i4952 As Integer
Dim i4954 As Integer
Dim s4956 As String
Dim s4960 As String
Dim s4964 As String
Dim l4968 As Long
Dim s4972 As String
Dim s4976 As String
Dim i4980 As Integer
Dim l65524_ As Long
Dim i65528_ As Integer
Dim l65530_ As Long
Dim i65534_ As Integer
s4469 = "QWK2: Logon program was started."
ActivityLog s4469
EnablePages 0
s4491 = ProgPath + "QWK2HOLD.CFG"
If Exists(s4491) Then
Open s4491 For Input As 1
If Not Local Then
CarrierCheck(0)
End If
122 LockFile(1, 0, 1)
Input #1, s4976
Input #1, i4980
Input #1, s4948
Input #1, s4936
Input #1, s4960
Input #1, s4964
Input #1, i4554
Input #1, i4552
Input #1, l4556
Input #1, i4882
Input #1, s4898
Input #1, s4902
Input #1, s4906
Input #1, s4910
Input #1, s4940
Input #1, s4914
Input #1, s4918
Input #1, s4922
Input #1, s4926
Input #1, s4930
UnlockFile(1, 0, 1)
Close 1
If Not Local Then
CarrierCheck(-1)
End If
308 Else
314 i4463 = 0
GoTo 5108
End If
326 If User.SecLevel = s4960 Or User.SecLevel = s4964 Then
i4463 = 23
Else
379 If s4976 = "" Then
i4463 = 1
GoTo 5108
Else
415 s4976 = Trim(UCase(s4976))
If Mid(s4976, 2, 2) <> ":\" Then
i4463 = 1
GoTo 5108
End If
466 If Right(s4976, 1) <> "\" Then
s4976 = s4976 + "\"
End If
End If
503 If s4948 = "" Then
i4463 = 2
GoTo 5108
Else
539 s4948 = Trim(UCase(s4948))
If Mid(s4948, 2, 2) <> ":\" Then
i4463 = 2
GoTo 5108
End If
590 If Right(s4948, 1) <> "\" Then
s4948 = s4948 + "\"
End If
End If
627 If s4936 = "" Then
i4463 = 3
GoTo 5108
Else
663 s4936 = UCase(s4936)
End If
674 If s4960 = "" Then
s4960 = "NO SEC1"
Else
706 s4960 = Trim(UCase(s4960))
End If
720 If s4964 = "" Then
s4964 = "NO SEC2"
Else
752 s4964 = Trim(UCase(s4964))
End If
766 If s4940 = "" Then
i4463 = 15
GoTo 5108
Else
802 s4940 = Trim(UCase(s4940))
If Mid(s4940, 2, 2) <> ":\" Then
i4463 = 15
GoTo 5108
End If
853 If Right(s4940, 1) <> "\" Then
s4940 = s4940 + "\"
End If
End If
890 If i4554 <= 0 Then
i4554 = 1
End If
911 If i4554 >= 26 Then
i4554 = 26
End If
933 If i4552 <= 0 Then
i4552 = 0
End If
953 If i4552 >= 365 Then
i4552 = 365
End If
977 If l4556 <= 0 Then
l4556 = 2147483647
End If
1001 If l4556 >= 2147483647 Then
l4556 = 2147483647
End If
1029 If s4898 = "" Or Len(s4898) <> 2 Then
s4898 = "@0E@"
Else
1074 s4898 = "@" + UCase(s4898) + "@"
End If
1099 If s4902 = "" Or Len(s4902) <> 2 Then
s4902 = "@0F@"
Else
1144 s4902 = "@" + UCase(s4902) + "@"
End If
1169 If s4906 = "" Or Len(s4906) <> 2 Then
s4906 = "@0B@"
Else
1214 s4906 = "@" + UCase(s4906) + "@"
End If
1239 If s4910 = "" Or Len(s4910) <> 2 Then
s4910 = "@0C@"
Else
1284 s4910 = "@" + UCase(s4910) + "@"
End If
1309 CurrentDate d4473
s4465 = FormatDate(d4473, "ddmmyyyy")
s4477 = Left(s4465, 2)
s4481 = Mid(s4465, 3, 2)
s4485 = Mid(s4465, 5, 4)
i4475 = (Val(s4485) - 1980) * 512 + Val(s4481) * 32 + Val(s4477)
If s4976 = s4948 Then
s4469 = "QWK2: Line #1 and Line #3 of QWK2HOLD.CFG MUST NOT be the same."
ActivityLog s4469
GoTo 6235
End If
1455 i4888 = 0
i4548 = 0
1467 Do While i4548 < i4554
s4884 = s4948 + Str(User.UserId) + ".QW" + Chr(i4888 + 65)
s4894 = s4948 + Str(User.UserId) + ".QW" + Chr(i4548 + 65)
If Exists(s4894) Then
i4548 = i4548 + 1
i4888 = i4888 + 1
If s4894 <> s4884 Then
Name s4894 As s4884
End If
1639 Else
1645 i4548 = i4548 + 1
End If
1659 Loop
1665 i4952 = i4888
i4888 = 0
s4884 = s4948 + Str(User.UserId) + ".QWA"
s4894 = s4976 + Str(User.UserId) + ".QWK"
If Exists(s4940 + "QWK2MA1.FLG") Then
i4888 = 1
If s4914 <> "" Then
Print s4910; s4914
Else
1803 Print s4910; "Mail Flag #1 is currently flying high."
End If
End If
1818 If Exists(s4940 + "QWK2MA2.FLG") Then
i4888 = 1
If s4918 <> "" Then
Print s4910; s4918
Else
1882 Print s4910; "Mail Flag #2 is currently flying high."
End If
End If
1897 If Exists(s4940 + "QWK2MA3.FLG") Then
i4888 = 1
If s4922 <> "" Then
Print s4910; s4922
Else
1961 Print s4910; "Mail Flag #3 is currently flying high."
End If
End If
1976 If Exists(s4940 + "QWK2MA4.FLG") Then
i4888 = 1
If s4926 <> "" Then
Print s4910; s4926
Else
2040 Print s4910; "Mail Flag #4 is currently flying high."
End If
End If
2055 If Exists(s4940 + "QWK2MA5.FLG") Then
i4888 = 1
If s4930 <> "" Then
Print s4910; s4930
Else
2119 Print s4910; "Mail Flag #5 is currently flying high."
End If
End If
2134 Print
If Trim(Left(User.Comment(Val(Mid(s4936, 9, 1))), 8)) = "QWK2 ON" Then
If i4888 = 1 Then
Print s4906; "If you are still ""Online"" when your QWK Packet(s) are due to be made"
Print s4906; "then yours will be skipped till the next time mail is processed."
Print
Delay 3
End If
2261 Else
2267 If i4888 = 1 Then
Delay 3
End If
End If
2290 If Exists(s4884) Or Exists(s4894) Then
i4548 = 0
Print s4898; "At least one QWK mail packet is on hold, looking for others."
Print
Print s4898; " FileName Size in Kbytes Age"; s4902
s4884 = s4948 + Str(User.UserId) + ".QW" + Chr(i4548 + 65)
s4894 = s4948 + Str(User.UserId) + ".QW" + Chr(i4888 + 65)
i4548 = 0
2448 Do While i4548 < i4554
s4884 = s4948 + Str(User.UserId) + ".QW" + Chr(i4548 + 65)
If Exists(s4884) Then
FindFirst(s4884, 0, sr4495)
l4544 = sr4495.Size
w4489 = sr4495.DOSDate
l4968 = l4968 + sr4495.Size
Print s4902; LeftPad(UCase(Trim(MakeWild.PacketId)) + ".QW" + Chr(i4548 + 65), 8);
Print s4906; LeftPad(Str(Int(sr4495.Size / 100)), 11);
Print s4902; LeftPad(Str(i4475 - w4489), 10);
If i4475 - w4489 = 1 Then
Print s4898; " Day"
Else
2746 If i4475 - w4489 = 0 Then
Print s4898; " Today"
Else
2788 Print s4898; " Days"
End If
End If
2803 Else
2809 GoTo 2835
End If
2815 i4548 = i4548 + 1
Loop
2835 s4465 = s4948 + Str(User.UserId)
If i4952 >= 26 Then
i4888 = 48
Else
2885 i4888 = i4952 + 1
End If
2899 s4884 = s4465 + ".QW" + Chr(i4888)
s4894 = s4976 + Str(User.UserId) + ".QWK"
If Exists(s4894) Then
CopyFile(s4894, s4884)
s4465 = Str(User.UserId) + ".QWK"
DeleteFile(s4465, i4980, 1)
i4952 = i4952 + 1
FindFirst(s4884, 0, sr4495)
l4544 = sr4495.Size
l4968 = l4968 + sr4495.Size
Print LeftPad(sr4495.Name, 12) + LeftPad(Str(Int(sr4495.Size / 100)), 14)
End If
3126 Else
3132 i4890 = Val(Mid(s4936, 9, 1))
If Trim(Left(User.Comment(i4890), 8)) <> "QWK2 ON" Then
GoTo 6235
End If
3218 Print s4910; "There are no QWK mail packets on hold for you at this time."
Print
Delay 3
GoTo 6235
End If
3249 Print s4898; "You have "; s4902; i4952; s4898; " mail packet";
If i4952 > 1 Then
Print "s";
End If
3314 Print " for a total of "; s4906; Int(l4968 / 100); s4898; " Kbytes."
If i4952 >= 1 Then
Print s4898; "Do you want to download";
If i4952 > 1 Then
Print " all packets";
Else
3420 Print " the packet";
End If
3429 Print " now or just the first one?"
Print
Print s4902; "The following choices are available for your use:"
Print s4898; "["; s4902; "A"; s4898; "]ll packets downloaded now and continue."
Print s4898; "["; s4902; "D"; s4898; "]ownload all packets now and log off of the BBS."
Print s4898; "["; s4902; "F"; s4898; "]irst, download only first packet and continue."
Print s4898; "["; s4902; "N"; s4898; "]o packets downloaded at this time, continue with BBS."
Print
s4469 = InputMask(s4898 + "Choose [" + s4902 + "A" + s4898 + "]ll, [" + s4902 + "D" + s4898 + "]ownload & Goodbye, [" + s4902 + "F" + s4898 + "]irst, or [" + s4902 + "N" + s4898 + "]one ", "X", "A", 1213417543)
s4469 = UCase(s4469)
s4972 = s4469
If s4469 = "N" Then
Print
GoTo 6235
End If
3802 If s4469 = "A" Then
If i4952 > 1 Then
Print s4898; "The mail packets will be sent in sequence, one right after the other."
Print s4906; "There will be a short pause between packets, please be patient."
End If
End If
End If
3864 If Local Then
Print
Print s4898; "Enter the path where you want your mail packets to wind up."
Print s4898; "Please use the following format shown in example: "; s4902; "C:\QWK\"; UCase(Trim(MakeWild.PacketId)); s4898; "."
s4956 = InputMask("-->", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "", 1213417543)
If s4956 = "" Then
i4463 = 21
GoTo 5108
End If
4006 s4956 = Trim(UCase(s4956))
If Mid(s4956, 2, 2) <> ":\" Then
i4463 = 21
GoTo 5108
End If
4057 If Right(s4956, 1) = "\" Then
i4888 = Len(s4956) - 1
s4956 = Left(s4956, i4888)
End If
End If
4111 Print
If s4972 <> "A" Then
s4469 = InputMask(s4898 + "Hit the Enter key to begin the file transfer or [" + s4902 + "A" + s4898 + "] to abort.", "X", "", 1213417543)
If UCase(Left(s4469, 1)) = "A" Then
s4972 = ""
GoTo 6235
End If
End If
4229 i4954 = i4952
4266 For i4548 = 0 To i4952 - 1 Step 1
s4894 = s4948 + Str(User.UserId) + ".QW" + Chr(i4548 + 65)
s4469 = TempPath
s4884 = s4469 + UCase(Trim(MakeWild.PacketId)) + ".QW" + Chr(i4548 + 65)
If Local Then
If Len(s4956) <= 20 Then
PushCommand s4956
End If
End If
4446 CopyFile(s4894, s4884)
Del s4894
If SendFile(s4884, 1213417543) Then
s4469 = UCase(Trim(MakeWild.PacketId)) + ".QW" + Chr(i4548 + 65)
ActivityLog "QWK2: File " + s4469 + " was downloaded successfully."
Del s4884
i4954 = i4954 - 1
Else
4572 Print s4910; " Mail transfer failed."; s4898
CopyFile(s4884, s4894)
Del s4884
s4469 = UCase(Trim(MakeWild.PacketId)) + ".QW" + Chr(i4548 + 65)
ActivityLog "QWK2: " + s4469 + " was not downloaded successfully."
GoTo 4838
End If
4680 If s4972 = "F" Then
Print
s4469 = InputMask(s4898 + "[" + s4902 + "N" + s4898 + "]ext File, [" + s4902 + "S" + s4898 + "]top Downloading ", "X", "N", 1213417543)
If UCase(Left(s4469, 1)) = "S" Then
GoTo 4838
End If
End If
4815 Next
4838 If Not (i4954 = i4952) Then
i4888 = i4952 - i4954
i4952 = i4954
4912 For i4548 = 0 To i4954 - 1 Step 1
s4884 = Trim(s4948) + Str(User.UserId) + ".QW" + Chr(i4548 + 65)
s4894 = Trim(s4948) + Str(User.UserId) + ".QW" + Chr(i4888 + 65)
Name s4894 As s4884
i4888 = i4888 + 1
Next
End If
5102 GoTo 6235
End If
5108 If i4463 >= 0 And i4463 <= 19 Then
Cls
Print
If i4463 = 0 Then
Print s4910; "The QWK2HOLD.CFG file was not located."
Else
5173 Print s4898; "Line ["; s4902; i4463; s4898; "] of the "; s4902; "QWK2HOLD.CFG"; s4898; " has a problem."
End If
5240 Print
Print s4898; "The current values of your "; s4902; "QWK2HOLD.CFG"; s4898; " file are"; s4902; ":"
Print s4898; "Line #1 = ["; s4902; s4976; s4898; "]"
Print s4898; "Line #2 = ["; s4902; i4980; s4898; "]"
Print s4898; "Line #3 = ["; s4902; s4948; s4898; "]"
Print s4898; "Line #4 = ["; s4902; s4936; s4898; "]"
Print s4898; "Line #5 = ["; s4902; s4960; s4898; "]"
Print s4898; "Line #6 = ["; s4902; s4964; s4898; "]"
Print s4898; "Line #7 = ["; s4902; i4554; s4898; "]"
Print s4898; "Line #8 = ["; s4902; i4552; s4898; "]"
Print s4898; "Line #9 = ["; s4902; l4556; s4898; "]"
Print s4898; "Line #10 = ["; s4902; i4882; s4898; "]"
Print s4898; "Line #11 = ["; s4902; Mid(s4898, 2, 2); s4898; "]"
Print s4898; "Line #12 = ["; s4902; Mid(s4902, 2, 2); s4898; "]"
Print s4898; "Line #13 = ["; s4902; Mid(s4906, 2, 2); s4898; "]"
Print s4898; "Line #14 = ["; s4902; Mid(s4910, 2, 2); s4898; "]"
Print s4898; "Line #15 = ["; s4902; s4940; s4898; "]"
Print
Print s4898; "Waiting for "; s4902; "60"; s4898; " seconds before ending program."
Delay 60
s4469 = "QWK2: Your QWK2HOLD.CFG has a problem with line #" + Str(i4463) + "."
ActivityLog s4469
Else
6019 If i4463 = 20 Then
Print
Print s4898; "Your input did not make sense, you may not download your QWK"
Print s4898; "packet at this time."
Print
s4469 = "QWK2: User's input was confusing, program aborted."
ActivityLog s4469
Else
6090 If i4463 = 21 Then
Print
Print s4898; "The path you supplied could not be located. Mail packet"
Print s4898; "transfer did not take place at this time."
Print
s4469 = "QWK2: User's supplied path was not located, program aborted"
ActivityLog s4469
Else
6161 If i4463 = 22 Then
s4469 = "QWK2: User does not have QWK checking turned on."
ActivityLog s4469
Else
6198 If i4463 = 23 Then
s4469 = "QWK2: User did not meet security requirements for QWK2."
ActivityLog s4469
GoTo 6235
End If
End If
End If
End If
End If
6235 s4469 = "QWK2: Logon program has ended."
ActivityLog s4469
If s4972 = "D" Then
Goodbye -1
End If
6274 End